<?php

namespace app\admin\validate\notice;

use think\Validate;

class NoticeValidate extends Validate
{

    protected $rule=array(
        "id"=>"require",
        "title"=>"require",
        "content"=>"require",
        "status"=>"require",
    );
    protected $message=array(
        "id|require"=>"id为空",
        "title|require"=>"标题不能为空",
        "status|require"=>"请选择状态",
        "content|require"=>"请输入内容",
    );
    protected $scene=array(
        "create"=>array("title","img","status","content"),
        "update"=>array("id","title","status","content"),
    );
}